#ifndef CONVERTMAINWINDOW_H
#define CONVERTMAINWINDOW_H

#include <QMainWindow>

class convertProcess;

const std::vector<QString>audio_Vec = {"mp4","mkv","ts","mov","flv"};
const std::vector<QString>video_Vec = {"mp3","aac","wav"};

enum{VIDEO,AUDIO};

namespace Ui {
class convertMainWindow;
}

class convertMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit convertMainWindow(QWidget *parent = nullptr);
    ~convertMainWindow();
    void addOutputCombo(size_t type = VIDEO);

private:
    void setOutputCombo();

private slots:
    void on_btn_file_clicked();
    void on_btn_convert_clicked();

    void on_comboBox_currentIndexChanged(const QString &arg1);
    void setProgressValue(double value);
    void onFileNameReady(const QString &fileName);

    void on_pushButton_clicked();

private:
    Ui::convertMainWindow *ui;
    convertProcess* m_convertProcess = nullptr;

    QString input_FilePath;
    QString input_Fmt;
    QString output_Fmt;
    QString output_Name;

};

#endif // CONVERTMAINWINDOW_H
